/* 
 * --------------------
 * Company					: LUOYANG GINGKO TECHNOLOGY CO.,LTD.
 * BBS						: http://www.eeschool.org
 * --------------------
 * Project Name			: USART
 * Module Name				: RST_Ctrl
 * Description				: The codes of "RST_Ctrl"
 * --------------------
 * Tool Versions			: Quartus II 13.1
 * Target Device			: Cyclone IV E  EP4CE10F17C8
 * --------------------
 * Engineer					: Xiaorenwu
 * Revision					: V0.0
 * Created Date			: 2016-04-06
 * --------------------
 * Engineer					:
 * Revision					:
 * Modified Date			:
 * --------------------
 * 
 * --------------------
 */

//--------------------Timescale------------------------------//
`timescale 1 ns / 1 ps
//--------------------Module_RST_Ctrl------------------//	
	module RST_Ctrl(
						input CLK_25M,
						output rst_n                     //输出复位信号
						);

	reg [5:0]rst_cnt = 6'd0;
	reg rst = 1'd0;
	always @(posedge CLK_25M)						
		if(rst_cnt == 6'd50)
			begin
				rst <= 1'd1;
				rst_cnt <= rst_cnt;
			end
		else rst_cnt <= rst_cnt + 1'd1;
	assign rst_n = rst;	

//--------------------Endmodule------------------//		
	endmodule
